<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ploygen</title>
    <style>
        #imageContainer {
            position: relative;
            text-align: center;
            width: 1268; /* 设置宽度为1280px */
            height: 720px; /* 设置高度为720px */
            overflow: hidden; /* 隐藏溢出内容 */
            margin-left: auto;
            margin-right: auto;
            border: 2px solid #000; /* 添加边框，2px宽度，黑色 */
        }
        #annotatedImage, #annotationCanvas {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        #insertModeButton {
            margin-top: 10px;
        }

        #annotationsList {
            position: absolute;
            max-height: 500px; /* 新增：设置最大高度，使得超出部分滚动 */
            overflow-y: auto; /* 新增：设置垂直滚动 */
        }

    </style>
</head>
<body>
    <h1>ploygen label</h1>
    
    <div id="imageContainer">
        <video id="remotevideo" width="1268" height="720" autoplay playsinline ></video>
        <canvas id="annotationCanvas"></canvas>
    </div>

    <button id="closePathButton">Close Path</button>
    <button id="insertModeButton">Insert Mode</button>
    <button id="playPauseButton">Play/Pause</button>

    <button id="connserver">Connect Sig Server</button>
    <button id="leave" disabled>Leave</button>

    <input type="color" id="colorPicker" value="#FF0000">

    <script src="js/label.js" defer></script>
    <script src="js/socket.io.js"></script>
    <script src="js/adapter-latest.js"></script>
    <script src="js/simplepeer.min.js"></script>
    <script src="js/jquery-3.6.0.min.js"></script>
    <script src="js/client.js"></script>
</body>
</html>
